package com.theaf.core.service;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author:songwenke
 * @Description:发送的消息封装体
 * @Date:create in 15:36 2018/3/26
 * @Modified By:
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message {
    /**
     * 消息模板编码,为空时为非模板消息
     */
    private String code;
    private Long organId;
    private String contact;
    private Long posId;
    private Long userId;
    private String phone;
    private String weixin;
    private String content;
    private String sender;
    //接收者，一般是直接发手机或微信要传的接收者，其它情况不用传递
    private String receiver;
    //1短信2微信3站内，用于无模板配置的
    private int type;
    //主要用于模板配置的参数
    private Map<String,Serializable> param = new HashMap();
}
